/**
 * 文件项接口
 */
export interface FileItem {
  name: string;
  path: string;
  isDirectory: boolean;
  size: number | null;
  modifiedTime: Date;
  type: 'file' | 'directory';
  children?: FileItem[];
  error?: string;
}

/**
 * 查看文件响应接口
 */
export interface ViewFilesResponse {
  type: 'file' | 'directory';
  name: string;
  path: string;
  size?: number;
  modifiedTime: Date;
  isDirectory: boolean;
  items?: FileItem[];
  totalCount?: number;
}